package com.car.postoffice;

import java.io.Serializable;

public class CMailResult implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int errorCode;
	private String errorMsg;
	
	public CMailResult(int errorCode, String errorMsg){
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}
	
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorMsg() {
		return errorMsg;
	}
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
	@Override
	public String toString(){
		StringBuffer buffer = new StringBuffer(128);
		buffer.append("[\n");
		buffer.append("  errorCode=" + errorCode + "\n");
		buffer.append("  errorMsg=" + errorMsg + "\n");
		buffer.append("]\n");
		return buffer.toString();
	}
}
